.class public Lcom/waiqin365/lightapp/xgpush/a/a/j;
.super Lcom/waiqin365/lightapp/xgpush/a/d;


# instance fields
.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x67

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/xgpush/a/d;-><init>(I)V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->c:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->d:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 17

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    move-object/from16 v0, p1

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    move-object/from16 v0, p0

    iput-object v3, v0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->c:Ljava/lang/String;

    :cond_0
    const-string/jumbo v3, "message"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string/jumbo v3, "message"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    move-object/from16 v0, p0

    iput-object v3, v0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->d:Ljava/lang/String;

    :cond_1
    const-string/jumbo v3, "data"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1e

    const-string/jumbo v3, "data"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    new-instance v14, Lorg/json/JSONArray;

    invoke-direct {v14, v2}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    if-eqz v14, :cond_1e

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, p0

    iput-object v2, v0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->e:Ljava/util/List;

    const/4 v2, 0x0

    move v13, v2

    :goto_0
    invoke-virtual {v14}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v13, v2, :cond_1e

    invoke-virtual {v14, v13}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    if-eqz v2, :cond_2

    const-string/jumbo v3, "custom"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v15

    new-instance v16, Lcom/waiqin365/lightapp/im/domain/b;

    invoke-direct/range {v16 .. v16}, Lcom/waiqin365/lightapp/im/domain/b;-><init>()V

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v12, v2

    :goto_1
    if-nez v15, :cond_4

    const-string/jumbo v2, ""

    move-object v11, v2

    :goto_2
    if-nez v15, :cond_6

    const-string/jumbo v3, ""

    :goto_3
    if-nez v15, :cond_8

    const-string/jumbo v2, ""

    :goto_4
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_1f

    move-object v10, v2

    :goto_5
    if-nez v15, :cond_a

    const-string/jumbo v2, ""

    move-object v9, v2

    :goto_6
    if-nez v15, :cond_c

    const-string/jumbo v2, ""

    move-object v8, v2

    :goto_7
    if-nez v15, :cond_e

    const-string/jumbo v2, ""

    move-object v7, v2

    :goto_8
    if-nez v15, :cond_10

    const-string/jumbo v2, ""

    move-object v6, v2

    :goto_9
    if-nez v15, :cond_12

    const-string/jumbo v2, ""

    move-object v5, v2

    :goto_a
    if-nez v15, :cond_14

    const-string/jumbo v2, ""

    move-object v4, v2

    :goto_b
    if-nez v15, :cond_16

    const-string/jumbo v2, ""

    move-object v3, v2

    :goto_c
    if-nez v15, :cond_18

    const-string/jumbo v2, ""

    :goto_d
    move-object/from16 v0, v16

    invoke-virtual {v0, v11}, Lcom/waiqin365/lightapp/im/domain/b;->a(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v10}, Lcom/waiqin365/lightapp/im/domain/b;->m(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v12}, Lcom/waiqin365/lightapp/im/domain/b;->l(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v9}, Lcom/waiqin365/lightapp/im/domain/b;->f(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v8}, Lcom/waiqin365/lightapp/im/domain/b;->g(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/domain/b;->n(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/im/domain/b;->k(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightapp/im/domain/b;->j(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/im/domain/b;->i(Ljava/lang/String;)V

    const-string/jumbo v5, "0"

    move-object/from16 v0, v16

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/im/domain/b;->d(Ljava/lang/String;)V

    const-wide/16 v6, 0x0

    invoke-static {v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(J)Ljava/lang/String;

    move-result-object v5

    move-object/from16 v0, v16

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/im/domain/b;->h(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/im/domain/b;->e(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/im/domain/b;->d(Ljava/lang/String;)V

    const-string/jumbo v3, ""

    const-string/jumbo v3, "2"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1a

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "daibanrenwu_chatid"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    :goto_e
    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/domain/b;->c(Ljava/lang/String;)V

    const-string/jumbo v2, "4"

    invoke-virtual/range {v16 .. v16}, Lcom/waiqin365/lightapp/im/domain/b;->e()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/xgpush/a/a/j;->e:Ljava/util/List;

    move-object/from16 v0, v16

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_2
    add-int/lit8 v2, v13, 0x1

    move v13, v2

    goto/16 :goto_0

    :cond_3
    const-string/jumbo v2, ""

    move-object v12, v2

    goto/16 :goto_1

    :cond_4
    const-string/jumbo v2, "messageId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v2, "messageId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v11, v2

    goto/16 :goto_2

    :cond_5
    const-string/jumbo v2, ""

    move-object v11, v2

    goto/16 :goto_2

    :cond_6
    const-string/jumbo v2, "url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    const-string/jumbo v2, "url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    goto/16 :goto_3

    :cond_7
    const-string/jumbo v3, ""

    goto/16 :goto_3

    :cond_8
    const-string/jumbo v2, "push_url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_9

    const-string/jumbo v2, "push_url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_4

    :cond_9
    const-string/jumbo v2, ""

    goto/16 :goto_4

    :cond_a
    const-string/jumbo v2, "moudle"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_b

    const-string/jumbo v2, "moudle"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v9, v2

    goto/16 :goto_6

    :cond_b
    const-string/jumbo v2, ""

    move-object v9, v2

    goto/16 :goto_6

    :cond_c
    const-string/jumbo v2, "moudleId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_d

    const-string/jumbo v2, "moudleId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v8, v2

    goto/16 :goto_7

    :cond_d
    const-string/jumbo v2, ""

    move-object v8, v2

    goto/16 :goto_7

    :cond_e
    const-string/jumbo v2, "sendName"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_f

    const-string/jumbo v2, "sendName"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v7, v2

    goto/16 :goto_8

    :cond_f
    const-string/jumbo v2, ""

    move-object v7, v2

    goto/16 :goto_8

    :cond_10
    const-string/jumbo v2, "sendDepartName"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_11

    const-string/jumbo v2, "sendDepartName"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v6, v2

    goto/16 :goto_9

    :cond_11
    const-string/jumbo v2, ""

    move-object v6, v2

    goto/16 :goto_9

    :cond_12
    const-string/jumbo v2, "sendTime"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_13

    const-string/jumbo v2, "sendTime"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v5, v2

    goto/16 :goto_a

    :cond_13
    const-string/jumbo v2, ""

    move-object v5, v2

    goto/16 :goto_a

    :cond_14
    const-string/jumbo v2, "messageType"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_15

    const-string/jumbo v2, "messageType"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v4, v2

    goto/16 :goto_b

    :cond_15
    const-string/jumbo v2, ""

    move-object v4, v2

    goto/16 :goto_b

    :cond_16
    const-string/jumbo v2, "messageStatus"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_17

    const-string/jumbo v2, "messageStatus"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    move-object v3, v2

    goto/16 :goto_c

    :cond_17
    const-string/jumbo v2, ""

    move-object v3, v2

    goto/16 :goto_c

    :cond_18
    const-string/jumbo v2, "userId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_19

    const-string/jumbo v2, "userId"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_d

    :cond_19
    const-string/jumbo v2, ""

    goto/16 :goto_d

    :cond_1a
    const-string/jumbo v3, "3"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1b

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "tongzhigonggao_chatid"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_e

    :cond_1b
    const-string/jumbo v3, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1c

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "wq365_chatid"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_e

    :cond_1c
    const-string/jumbo v3, "5"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1d

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "managerhelp_chatid"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_e

    :cond_1d
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "xiaomishu_chatid"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    goto/16 :goto_e

    :cond_1e
    const/4 v2, 0x1

    :goto_f
    return v2

    :catch_0
    move-exception v2

    const/4 v2, 0x0

    goto :goto_f

    :cond_1f
    move-object v10, v3

    goto/16 :goto_5
.end method
